﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Snowflake.Core;

namespace Homework.Domain.Table
{
    /// <summary>
    /// 商品表
    /// </summary>
    public  class tb_Product
    {
        /// <summary>
        /// 商品表主键
        /// </summary>
        [Key]
        public Guid    ProductId   { get; set; } = new Guid();
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(60)]
        public string  ProductName { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        [StringLength(60)]
        public string ProductNumber { get; set; } = new IdWorker(1,1).NextId().ToString();
    }
}
